<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../include/tag.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>众筹人员转移审核</title>
    <%@include file="../include/commonFile.jsp" %>
    <link rel="stylesheet" href="${ctx}/css/common/list.css">
    <link rel="stylesheet" href="${ctx}/css/common/table.css">
</head>
<body>
<!--头部-->
<%@include file="../include/header.jsp" %>
<div class="index-outside">
    <%@include file="../include/sidebar.jsp" %>
    <!--内容-->
    <section>
        <div class="section-main">
            <form class="layui-form" action="${ctx}/audit/transfer/list.do" id="myForm" method="post">
                <input type="hidden" name="pageNo" id="pageNo"/>
                <div class="f-search-bar">
                    <div class="search-container">

                        <ul class="search-form-content">
                            <li class="form-item-inline"><label class="search-form-lable">主题</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="themeName" autocomplete="off" class="layui-input"
                                           value="${input.themeName}" placeholder="请输入主题名称">
                                </div>
                            </li>
                            <li class="form-item-inline">
                                <label class="search-form-lable">合作商</label>
                                <div class="layui-input-inline">
                                    <input type="hidden" name="partnerName" />
                                    <select name="partnerId" lay-search lay-filter="partnerId">
                                        <option value="">全部合作商</option>
                                        <c:forEach var="partner" items="${partnerList}">
                                            <option value="${partner.id}" <c:if test="${partner.id == input.partnerId}">selected="selected"</c:if>>${partner.realname}</option>
                                        </c:forEach>
                                    </select>
                                </div>
                            </li>
                            <li class="form-item-inline">
                                <div class="sub-btns">
                                    <a class="layui-btn layui-btn-danger"
                                       href="javascript:submitFunctionNew('#myForm')">查询</a>
                                    <a class="layui-btn layui-btn-normal"
                                       href="javascript:resetFunction('#myForm')">重置</a>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </form>
            <div class="list-content">
                <ul class="num mt10">
                    <div class="l">
                        <li class="f16">共<span class="red">${page.totalCount}</span>条数据</li>
                    </div>
                    <p class="cl"></p>
                </ul>
                <div class="cl">
                    <table class="layui-table">
                        <colgroup>
                            <col width="100px">
                            <col>
                            <col width="25%">
                            <col width="10%">
                            <col width="10%">
                        </colgroup>
                        <thead>
                        <tr>
                            <th>排序号</th>
                            <th>主题名称</th>
                            <th>合作商</th>
                            <th>待审核</th>
                            <th>已审核</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach var="talObj" items="${zcTransferAuditList}" varStatus="st">
                            <tr>
                                <td>
                                    <c:set var="rowNo" value="${st.count + ((page.page - 1) * page.limit)}"/>
                                    <c:if test="${rowNo < 10}">0${rowNo}</c:if>
                                    <c:if test="${rowNo >= 10}">${rowNo}</c:if>
                                </td>
                                <td>${talObj.themeName}</td>
                                <td>${talObj.partnersName}</td>
                                <td><a href="${ctx}/audit/transfer/detail.do?eId=${talObj.actId}&type=0" class="red">${talObj.auditINGTotal}</a></td>
                                <td><a href="${ctx}/audit/transfer/detail.do?eId=${talObj.actId}&type=1" class="red">${talObj.auditEDTotal}</a></td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
            <div id="page_content" class="page-container"></div>
        </div><!--底部-->
        <%@include file="../include/footer.jsp" %>
    </section>
</div>
<script type="text/javascript" src="${ctx}/script/common/list.js"></script>
<script type="text/javascript" src="${ctx}/script/common/table_option.js"></script>
<script type="text/javascript">
    txz.initHeader({
        nav: [{
            name: '众筹人员转移审核',
            curr: true
        }],
        info: '<span class="f12">共<b>${page.totalCount}</b>条记录',
        btns: []
    });

    //加载分页
    loadPageNew({elem: 'page_content', totalCount: '${page.totalCount}', limit: '${page.limit}', page: '${page.page}'});
</script>
</body>
</html>